package pizza.admin.dao;
import java.util.Collection;

import pizza.admin.entity.Order;

/**
 * @author George Dailiev <george.dailiev@gmail.com>
 * @version 1.0
 */
public interface OrderDAOInterface {
	
	/**
	 * @param 
	 */
	public void initializeEntityManager();
	
	/**
	 * @param id number
	 * @return Order Entity representing the order object
	 */
	public Order getById(Integer id);
	
	
	/**
	 * @return collection of all orders
	 */
	public Collection<Order> getAll();
	
	/**
	 * @param order
	 * @return add order to database
	 */
	public void add(Order order);
	
	/**
	 * @param order
	 */
	public void edit(Order order);
	
	/**
	 * @param order
	 */
	public void delete(Order order);
	
	/**
	 * 
	 */
	public void destroy();
}
